import httpRequest from "@/axios/index.js"

/**
 * 初始化部门树结构信息
 */
export function queryDeptAllTreeReq(){
    return httpRequest({
        url:"/sys/dept/all/tree",
        method:"get"
    })
}

/**
 * 添加
 */
 export function addReq(data){
    return httpRequest({
        url:"/sys/dept/add",
        method:"post",
        data:data
    })
}

/**
 * 修改
 */
 export function updateReq(data){
    return httpRequest({
        url:"/sys/dept/update",
        method:"put",
        data:data
    })
}

/**
 * 删除
 */
 export function deleteReq(ids){
    return httpRequest({
        url:"/sys/dept/delete",
        method:"post",
        data:ids
    })
}